package com.zhao.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author zhangzhao
 */
public class MyRunnable1 implements Runnable {
	private String id;
	private String time;

	public MyRunnable1(String param,String time) {
		//定时任务需要的数据
		this.id = param;
		this.time = time;
	}

	@Override
	public void run() {
		//在此处编写业务代码
		System.out.println("需要手动启动的定时任务，每"+time+"秒执行一次" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date())+"id为"+id);
	}
}
